#include <iostream>

class Animal
{
public:
    int age{};
};

class Horse : public Animal
{
public:
    int a{};
    int getAge() const { return Animal::age; }
};

class Donkey : public Animal
{
public:
    int b{};
    int getAge() const { return Animal::age; }
};

class Mule : public Horse, public Donkey
{
public:
    void displayAge() {
        std::cout << "Mule's age from Horse: " << Horse::getAge() << std::endl;
        std::cout << "Mule's age from Donkey: " << Donkey::getAge() << std::endl;
    }
};

int main() {
    Mule mule;
    mule.Horse::age = 5; // 在 Horse 中设置 age
    mule.Donkey::age = 8; // 在 Donkey 中设置 age

    mule.displayAge();

    return 0;
}
